snapshot: Only compute start and end point if we have to
authorTimm Bäder <mail@baedert.org>
Thu, 15 Jul 2021 14:52:38 +0000 (16:52 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 15 Jul 2021 14:52:38 +0000 (16:52 +0200)
commit433233258bf1c04ab3e717dd097e3953f1d3ff84
tree15e3a7149baa497a5e47fb7924a46b69b432b858
parent3eed61deba9d5ab488f3b9a0bd22b822d829156d
snapshot: Only compute start and end point if we have to

If the linear gradient results in a color node, we don't need the start
and end point. Only declare and compute it if we need to.
gtk/gtksnapshot.c